<?xml version="1.0" encoding="UTF-8"?>
<!-- 
 Copyright (C) 2014 - Open Source Geospatial Foundation. All rights reserved.
 This code is licensed under the GPL 2.0 license, available at the root
 application directory.
 -->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>

    <bean id="geopkgGetMapOutputFormatWPS" class="org.geoserver.geopkg.wps.GeoPackageGetMapOutputFormatWPS">
      <constructor-arg ref="webMapService" />
      <constructor-arg ref="wms" />
      <constructor-arg ref="gwcFacade" />
    </bean>
    
    <bean id="geopkgProcess" class="org.geoserver.geopkg.wps.GeoPackageProcess">
	  <constructor-arg index="0" ref="geoServer"/>
      <constructor-arg index="1" ref="geopkgGetMapOutputFormatWPS" />
      <constructor-arg index="2" ref="wpsResourceManager"/>
      <constructor-arg index="3" ref="filterFactory"/>
      <constructor-arg index="4" ref="dataDirectory"/>
      <constructor-arg index="5" ref="entityResolverProvider"/>
      <constructor-arg index="6" ref="getMapKvpReader"/>
    </bean>
    
    <bean id="geopkgProcessRequestPPIO" class="org.geoserver.geopkg.wps.GeoPackageProcessRequestPPIO" >
      <constructor-arg ref="entityResolverProvider"/>
    </bean>
    <bean id="geopkgDataStoreFactoryInitializer" class="org.geoserver.geopkg.GeoPkgDataStoreFactoryInitializer">
        <property name="resourceLoader" ref="resourceLoader"/>
    </bean>
</beans>